package edu.czjtu.geesonke.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.czjtu.geesonke.dto.EmployeeDto;
import edu.czjtu.geesonke.entity.Employee;
import edu.czjtu.geesonke.mapper.EmployeeMapper;
import edu.czjtu.geesonke.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper,Employee> implements EmployeeService{

    @Autowired
    EmployeeMapper employeeMapper;

    @Override
    public IPage<EmployeeDto> selectJoin(Page page, String employeeName, String shopName) {
        return employeeMapper.selectJoin(page,employeeName,shopName);
    }
}
